import axios from './axios'

// 客户订货查询 多条件
export function select(params){
  return axios({
    url:'/customerOrderTotal/select',
    params
  })
}

// 继续录入  （相同货号的数量/金额累加）
export function continueInput(data){
  return axios({
    method: 'post',
    url:'/customerOrderTotal/continue',
    data
  })
}

// 保存
export function save(data){
  return axios({
    method: 'post',
    url:'/customerOrderTotal/save',
    data
  })
}

// 确认
export function affirm(params){
  return axios({
    method: 'put',
    url:'/customerOrderTotal/affirm',
    params
  })
}

// 按货号查询客订数据  ：改单
export function get(params){
  return axios({
    url:'/customerOrderTotal/get',
    params
  })
}

// 改单
export function update(data){
  return axios({
    method: 'put',
    url:'/customerOrderTotal/update',
    data
  })
}

// 按型色号查询厂商库存数据
export function selectByStyleColor(params){
  return axios({
    url:'/customerOrderTotal/selectByStyleColor',
    params
  })
}

// 未交量查询
export function selectNotOut(params){
  return axios({
    url:'/customerOrderTotal/selectNotOut',
    params
  })
}

// 客户订货合计查询 多条件
export function selectSum(params){
  return axios({
    url:'/customerOrderTotal/selectSum',
    params
  })
}

// 订货明细
export function orderDetails(data){
  return axios({
    method: 'post',
    url:'/customer-order-info-two/orderDetails',
    data
  })
}


export function deleteOrder(data){
  return axios({
    method: 'put',
    url:'/customerOrderTotal/delete',
    data
  })
}